<?php

use Biz\service\BrandUser;
use Biz\tools\GoodsExposureLog;

/**
 * @deprecated
 */
class HotGoodsAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {

        $uid = $this->getRequest()->getQuery('uid', 0);
        $is_force = $this->getRequest()->getQuery('is_force', 0);
        $hotGoods = BrandUser::HotGoodsList($uid, $is_force);

        $this->setSuccess(['list' => $hotGoods]);
        GoodsExposureLog::addLog($this->getRequest(), $hotGoods, $uid);

    }

}